/***************************************************************
 * Name:      app.h
 * Purpose:   Defines Application Class
 * Author:     ()
 * Created:   2007-03-26
 * Copyright:  ()
 * License:
 **************************************************************/

#ifndef WXAPP_H
#define WXAPP_H

#include <wx/wxprec.h>

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

#ifndef WX_PRECOMP
    #include <wx/wx.h>
#endif

#pragma warning( disable:4267)
#pragma warning( disable:4996)

#ifdef _DEBUG
	#define DEBUG(msg) _tux_debug(msg)
#else
	#define DEBUG(msg)
#endif

#define WARN(msg) _tux_warn(msg);

class MainFrame;

class App : public wxApp
{
	public:
		App();
		virtual ~App();
		virtual bool OnInit();
        static MainFrame* GetMainFrame();

		void InitLanguage(int lang);

		void RequestUserAttention();

    private:
        static MainFrame* frame;
        wxLocale* locale;
};

DECLARE_APP(App);

DECLARE_EVENT_TYPE(EVT_DEBUG_RECEIVED, -1)

void _tux_debug(const wxString& msg);

void _tux_warn(const wxString& msg);

void _tux_error(const wxString& msg);


#endif

